package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.Answer;
import cn.wolfcode.luowowo.comment.query.AnswerQuery;
import org.springframework.data.domain.Page;

/**
 * 问题的回答服务接口
 */
public interface IAnswerService {

    /**
     * 添加更新
     */
    void saveOrUpdate(Answer answer);

    /**
     * 添加回答
     * @param answer
     */
    void save(Answer answer);

    /**
     * 分页
     * @param qo
     * @return
     */
    Page query(AnswerQuery qo);

    /**
     * 点赞回答
     * @param aid //回答id
     * @param uid //用户id
     */
    void answerThumbUp(String aid, Long uid);
}
